package com.wipz.eoa.iphone.settlemanagement.enterprisesettle;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;

import com.wipz.eoa.iphone.BaseAction;
import com.wipz.eoa.iphone.IBaseService;

/**
 * 
 * @author yangxue
 *
 */
public class EnterpriseSettleAction extends BaseAction{
	
    private static final long serialVersionUID = 1L;
	
	private IBaseService baseService;
	
	private IEnterpriseSettleService enterpriseSettleService;

	public void setBaseService(IBaseService baseService) {
		this.baseService = baseService;
	}

	public IBaseService getBaseService() {
		return baseService;
	}

	public void setEnterpriseSettleService(IEnterpriseSettleService enterpriseSettleService) {
		this.enterpriseSettleService = enterpriseSettleService;
	}

	public IEnterpriseSettleService getEnterpriseSettleService() {
		return enterpriseSettleService;
	}
	/**
	 * 企业租赁管理列表
	 */
	private List list;
	private List query;
	
	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}
	
	public List getQuery() {
		return query;
	}

	public void setQuery(List query) {
		this.query = query;
	}
	/**
	 * 企业租赁详细
	 */
	private Object detail;
	
	public Object getDetail() {
		return detail;
	}

	public void setDetail(Object detail) {
		this.detail = detail;
	}
	
	/**
	 * 企业租赁列表
	 */
	public String list() {
		Map<String,String>	parms = new HashMap<String,String>();
		list = baseService.queryList("enterprisesettle.queryList", parms);
		return SUCCESS;
	}
	/**
	 * 查询企业租赁详细
	 * @return
	 * 2012-2-10 上午11:43:10
	 */
	public String detail() {
		String id = this.getRequest().getParameter("id");
		if(id.isEmpty()) {
			return SUCCESS;
		}
		if(StringUtils.isNotEmpty(id)){
			Map<String, String> params = new HashMap();
			params.put("id", id);
			detail=baseService.queryOne("enterprisesettle.detail", params);
		}
		return SUCCESS;
	}
}
